package mya.mes.mdc.model.tag.values;


import com.alibaba.fastjson.JSONObject;
import mya.mes.mdc.model.tag.MdcTagValue;

import java.util.ArrayList;
import java.util.List;

public class MdcTagValues {

  /**
   * 保存到mongodb的Msg的ID
   */
  public Long mqttMsgId;

  /**
   * Tag类型
   */
  public String tagPrefix;

  /**
   * 数据采集时间
   */
  public String dateTime;


  public List<MdcTagValue> valueList = new ArrayList<>();

  public MdcTagValues() {
  }

//  public MdcTagValues(JSONObject json) {
//    MdcTagValuesConverter.fromJson(json, this);
//  }

//  public JsonObject toJson() {
//    JsonObject json = new JsonObject();
//    MdcTagValuesConverter.toJson(this, json);
//    return json;
//  }


  public Long getMqttMsgId() {
    return mqttMsgId;
  }

  public void setMqttMsgId(Long mqttMsgId) {
    this.mqttMsgId = mqttMsgId;
  }

  public String getTagPrefix() {
    return tagPrefix;
  }

  public void setTagPrefix(String tagPrefix) {
    this.tagPrefix = tagPrefix;
  }

  public String getDateTime() {
    return dateTime;
  }

  public void setDateTime(String dateTime) {
    this.dateTime = dateTime;
  }

  public List<MdcTagValue> getValueList() {
    return valueList;
  }

  public void setValueList(List<MdcTagValue> valueList) {
    this.valueList = valueList;
  }
}
